package com.webBasic.service;

import com.webBasic.domain.Student;
import com.webBasic.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 学生服务层
 */
@Service
public class StudentService {
    @Autowired
    private StudentMapper studentMapper;
    public List<Student> selectStudentList(){
          List<Student>  studentList= studentMapper.selectStudentList();
        return studentList;

    }

    public Student selectStudentById(Integer id,Integer status){
        Student student = studentMapper.selectStudentById(id,status);
        return  student;
    }
}
